<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><h6>热门关键字</h6>
<hr class="text-subline">
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=d743afb3409a00e93bb82a55c2f35a68&action=lists&catid=%24catid&num=100&siteid=%24siteid&order=listorder+DESC&return=tag\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$tag = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder DESC','limit'=>'100',));}?>
  <?php $n=1;if(is_array($tag)) foreach($tag AS $v) { ?>
    <?php $tags .= $v['keywords'].' '?>
  <?php $n++;}unset($n); ?>
  <?php $value = str_replace(' ','\',\'',trim($tags))?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
<div class="offset-top-14 offset-md-top-20">
  <?php if($value) { ?>
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=ac9b76c079871bffe2f1634f09f19d88&sql=SELECT+%2A+FROM+hy_keyword+WHERE+keyword+IN+%28%27%24value%27%29+ORDER+BY+videonum+DESC&return=kw&num=20\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("SELECT * FROM hy_keyword WHERE keyword IN ('$value') ORDER BY videonum DESC LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$kw = $a;unset($a);?>
    <div class="tags group group-sm">
      <?php $n=1;if(is_array($kw)) foreach($kw AS $r) { ?>
      <a href="<?php echo APP_PATH;?>index.php?m=content&c=tag&a=lists&tag=<?php echo urlencode($r['keyword']);?>" class="btn-tag btn btn-default" ><?php echo $r['keyword'];?></a>
      <?php $n++;}unset($n); ?>
    </div>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
  <?php } else { ?>
    暂无信息...
  <?php } ?>
</div>
